<?php
/**
 * @package Component Metromap for Joomla! 1.5
 * @version $Id: metromapline.php 4 2010-08-17 13:58:48Z batyrkin $
 * @author Batyrkin Anton
 * @copyright (C) 2010- Batyrkin Anton
 * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 **/

defined( '_JEXEC' ) or die();

class TableMetromapLine extends JTable
{
	var $id					= null;
	var $linename			= null;
	var $ordering			= null;

	function __construct( &$db ) {
		parent::__construct( '#__metrolines', 'id', $db );
	}

	function check() {
		if (trim( $this->linename ) == '') {
			$this->setError( JText::_( 'Line must have a name') );
			return false;
		}

		return true;
	}
}
?>